<!-- 分类 -->
<template>
	<view class="category-box">
		<!-- 三级分类 -->
		<three-catgory :categoryStyleId="categoryStyleId" v-if="categoryType === 4"></three-catgory>
	</view>
</template>

<script>
 
import threeCatgory from './category/three-catgory.vue';
 
import { mapMutations, mapActions, mapState, mapGetters } from 'vuex';
export default {
	components: {
	 
		threeCatgory,
	 
	},
	data() {
		return {
			categoryType: 4, //1:快速购买,2:一级分类，3:二级分类，4:三级分类
			categoryStyleId: 0 //分类Id
		};
	},
	computed: {
		...mapGetters(['authType'])
		
	},
	onLoad() {
	 
	},
	onShow() {
	  // this.initCart();
	},
	methods: {
 
	 // initCart(){
	 	
	 // 	if (uni.getStorageSync("cartCount")) {
	 // 		uni.setTabBarBadge({
	 // 			index: 3,
	 // 			text: String(uni.getStorageSync("cartCount"))
	 // 		})
	 // 	} else {
	 // 		uni.removeTabBarBadge({
	 // 			index: 3
	 // 		})
	 // 	}
	 	
	 // }
	}
};
</script>

<style lang="scss">
.category-box {
	height: 100%;
	flex: 1;
	overflow: hidden;
}
</style>
